package xyz.zyl2020.service;

import org.springframework.stereotype.Service;
import xyz.zyl2020.entity.User;

/**
 * @author ZhuYinglong
 * @date 2020/9/2 0002
 */
@Service
public class UserService {

    /**
     * 模拟从数据库中获取用户信息
     *
     * @param username
     * @param password
     * @return
     */
    public User getUserByUsernameAndPassword(String username, String password) {
        User user = new User();
        user.setUsername(username);
        user.setPassword(password);
        user.setId(1L);
        return user;
    }
}
